package com.app.mapper;

import com.app.entity.po.HuibenHomeworkClass;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * <p>
 * 作业-班级关联表 Mapper 接口
 * </p>
 *
 * @author lizi
 * @since 2025-07-29
 */
public interface HuibenHomeworkClassMapper extends BaseMapper<HuibenHomeworkClass> {

    /**
     * 根据作业ID查询关联的班级ID列表
     * @param homeworkId 作业ID
     * @return 班级ID列表
     */
    List<Long> selectClassIdsByHomeworkId(@Param("homeworkId") Long homeworkId);

    /**
     * 根据班级ID查作业ID列表
     */
    List<Long> selectHomeworkIdsByClassId(@Param("classId") Long classId);
} 